import request from '@/utils/request'

export const reqTradeMarkList = (page, limit) => request({ url: `/admin/product/baseTrademark/${page}/${limit}`, method: 'get' })

export const reqAddUpdatdeTrademark = (trademarkInfo) => {
    if (trademarkInfo.id) {
        return request({ url: "/admin/product/baseTrademark/update", method: 'put', data: trademarkInfo })
    } else {
        return request({ url: '/admin/product/baseTrademark/save', data: trademarkInfo, method: 'post' })
    }
}

export const reqDeleteMarktrade = (id) => request({ url: `/admin/product/baseTrademark/remove/${id}`, method: 'delete' })